[BusyBox-cvs] svn commit: trunk/busybox/coreutils

landley at busybox.net landley at busybox.net
Sat May 28 23:36:42 UTC 2005


Author: landley
Date: 2005-05-28 17:36:38 -0600 (Sat, 28 May 2005)
New Revision: 10433

Log:
Patch from Shaun Jackman to save a few bytes.



Modified:
   trunk/busybox/coreutils/watch.c


Changeset:
Modified: trunk/busybox/coreutils/watch.c
===================================================================
--- trunk/busybox/coreutils/watch.c	2005-05-28 23:22:12 UTC (rev 10432)
+++ trunk/busybox/coreutils/watch.c	2005-05-28 23:36:38 UTC (rev 10433)
@@ -100,11 +100,10 @@
 			//child
 			close(1);
 			dup(old_stdout);
-			if (execvp(*watched_argv, watched_argv)) {
-				bb_error_msg_and_die("Couldn't run command\n");
-			}
+			execvp(*watched_argv, watched_argv);
+			bb_perror_msg_and_die(*watched_argv);
 		} else {
-			bb_error_msg_and_die("Couldn't vfork\n");
+			bb_perror_msg_and_die("vfork");
 		}
 	}
 }




More information about the busybox-cvs mailing list