summaryrefslogtreecommitdiff
path: root/src/nohup.c
AgeCommit message (Collapse)Author
2006-03-23(main): Ignore fd_reopen return value when ignoring input, sincePaul Eggert
we've closed input at that point so we are ignoring input.
2006-03-23(main): nohup diagnostics are now more precise, and nohup nowPaul Eggert
redirects stderr to nohup.out if stdout is closed and stderr is a tty.
2005-08-12(main): Explain why we reopen stdin for write-only access.Jim Meyering
2005-07-15(main): Don't worry about POSIXLY_CORRECT.Paul Eggert
2005-07-03Include fd-reopen.h.Paul Eggert
Include unistd--.h, not unistd-safer.h. (main): Use fd_reopen to simplify code. When replacing stdin, use "/dev/null" not "/", as that's less likely to go wrong these days. (main): Use dup, not dup_safer.
2005-06-03Fix typo in comment.Paul Eggert
2005-06-02Don't use "path" or "filename".Paul Eggert
2005-05-26Fix typo in comment.Paul Eggert
2005-05-26nohup now redirects a tty stdin to an unreadable fd instead of closing it.Paul Eggert
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-12(main): nohup now closes stdin if it is a terminal, unlessPaul Eggert
POSIXLY_CORRECT is set.
2005-04-23(main): If getopt fails, exit with status 127, not status 1.Paul Eggert
2005-04-11Include unistd-safer.h.Paul Eggert
(main): Don't dup stderr to stdin or stdout by mistake.
2005-04-05(usage): Mention that some shells provide aJim Meyering
built-in function by the same name.
2005-03-19(main): nohup now ignores the umask when creating nohup.out.Paul Eggert
nohup now closes stderr if it is a terminal and stdout is closed. Be a little more paranoid about return values; e.g., check for any negative return from open. Assume free (NULL) works. Close file descriptor leak when redirecting standard output to a file.
2004-11-17(main): Use getopt_long rather than getopt.Paul Eggert
2004-09-21Include <getopt.h>.Paul Eggert
(main): Reject unknown options.
2004-08-03(main): Use bool for booleans.Paul Eggert
2004-07-04(main): Don't pass NULL first argument to path_concat.Jim Meyering
This cleans up the semantics a bit, as we no longer try to open the same file twice.
2004-06-21(main): Standardize on the diagnostics given when someone givesJim Meyering
too few operands ("missing operand after `xxx'") or too many operands ("extra operand `xxx'"). Include "quote.h" and/or "error.h" if it wasn't already being included.
2004-04-20(main) [!defined _POSIX_SOURCE]:Jim Meyering
Use simpler "signal (sig, SIG_IGN)" rather than sigaction equivalent.
2004-04-04(main): Adjust to new calling convention for set_cloexec_flag.Jim Meyering
2004-03-04(main): Don't invoke set_cloexec_flag with a file descriptor of -1.Jim Meyering
2004-03-03Include "cloexec.h".Jim Meyering
(main): Set the copy of stderr to close on exec.
2004-01-21(usage): Use EXIT_SUCCESS, not 0, for clarity.Jim Meyering
(main): Initialize exit_failure to EXIT_FAIL. (main): Use EXIT_ENOENT and EXIT_CANNOT_INVOKE rather than roll-your-own symbols or integers. (NOHUP_FOUND_BUT_CANNOT_INVOKE): Remove; all uses changed to EXIT_CANNOT_INVOKE.
2003-11-05Cast NULL to `(char *)' in call to variadic function,Jim Meyering
parse_long_options, so that it works even on systems for which sizeof char* != sizeof int.
2003-10-18Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS changeJim Meyering
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings. Update the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. * src/true.c (main): Append NULL to version_etc argument list. * src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
2003-09-18(WRITTEN_BY): Rename from AUTHORS.Jim Meyering
Begin each WRITTEN_BY string with `Written by ' and end it with `.'. Mark each WRITTEN_BY string as translatable.
2003-09-18revert previous changeJim Meyering
2003-09-18Update AUTHORS definition to be a comma-separated list of strings and/or updateJim Meyering
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
2003-07-23Don't include headers already included by system.h:Jim Meyering
Don't include closeout.h.
2003-07-18(NOHUP_FOUND_BUT_CANNOT_INVOKE, NOHUP_FAILURE):Jim Meyering
Use an anonymous `enum', rather than #define.
2003-07-13(NOHUP_FAILURE, NOHUP_FOUND_BUT_CANNOT_INVOKE): Define.Jim Meyering
(main): Use them.
2003-07-11New file. Rewrite of nohup.sh in C.Jim Meyering
This solves a portability problem: on at least Solaris systems, when nohup.sh used the vendor /bin/sh, it would exit with status of `1' rather than the required 126 or 127 upon failure to exec the specified program.