comparison toys/posix/nohup.c @ 955:144d5ba7d410

Replace users of xexec(toys.optargs) with xexec_optargs(0) to avoid free/reuse bug during argument parsing.
author Rob Landley <rob@landley.net>
date Thu, 18 Jul 2013 18:20:03 -0500
parents 786841fdb1e0
children 0752b2d58909
comparison
equal deleted inserted replaced
954:1cf9c28012a7 955:144d5ba7d410
34 } 34 }
35 if (isatty(0)) { 35 if (isatty(0)) {
36 close(0); 36 close(0);
37 open("/dev/null", O_RDONLY); 37 open("/dev/null", O_RDONLY);
38 } 38 }
39 xexec(toys.optargs); 39 xexec_optargs(0);
40 } 40 }