[BACK]Return to shutdown.c CVS log [TXT][DIR] Up to [local] / prex-old / usr / bin / shutdown

Diff for /prex-old/usr/bin/shutdown/shutdown.c between version 1.1.1.1 and 1.1.1.1.2.1

version 1.1.1.1, 2008/06/03 10:38:47 version 1.1.1.1.2.1, 2008/08/13 17:12:36
Line 27 
Line 27 
  * SUCH DAMAGE.   * SUCH DAMAGE.
  */   */
   
 #include <prex/prex.h>  #include <sys/reboot.h>
 #include <prex/power.h>  
   
 #include <unistd.h>  #include <unistd.h>
 #include <err.h>  #include <err.h>
Line 49 
Line 48 
         /* kill(-1, SIGTERM); */          /* kill(-1, SIGTERM); */
         sleep(1);          sleep(1);
   
         shutdown(0);          reboot(RB_POWERDOWN);
   
         fprintf(stderr, "shutdown failed!\n");          fprintf(stderr, "shutdown failed!\n");
         exit(1);          exit(1);

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.1.2.1

CVSweb