Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/coreutils/nohup.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 816 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 32  nohup: redirecting stderr to stdout Line 32  nohup: redirecting stderr to stdout
32  */  */
33    
34  int nohup_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;  int nohup_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
35  int nohup_main(int argc, char **argv)  int nohup_main(int argc UNUSED_PARAM, char **argv)
36  {  {
37   const char *nohupout;   const char *nohupout;
38   char *home;   char *home;
39    
40   xfunc_error_retval = 127;   xfunc_error_retval = 127;
41    
42   if (argc < 2) bb_show_usage();   if (!argv[1]) {
43     bb_show_usage();
44     }
45    
46   /* If stdin is a tty, detach from it. */   /* If stdin is a tty, detach from it. */
47   if (isatty(STDIN_FILENO)) {   if (isatty(STDIN_FILENO)) {

Legend:
Removed from v.816  
changed lines
  Added in v.984