summary refs log tree commit diff
path: root/nq.c
Commit message (Collapse)AuthorAgeFilesLines
* nq: open dirfd with O_DIRECTORY to fail earlyChristian Neukirchen2015-08-281-1/+1
|
* nq: mkdir $NQDIRChristian Neukirchen2015-08-281-0/+7
|
* nq: error handling for dup2Christian Neukirchen2015-08-271-2/+5
|
* nq: fsync after renameChristian Neukirchen2015-08-271-0/+3
| | | | | For details, see https://groups.google.com/forum/#!topic/comp.unix.programmer/AM2V83RCOVE
* nq: add quiet flag -q.Christian Neukirchen2015-08-251-5/+10
|
* nq.c: fix time_t overflow on 32-bit machinesLv Zheng2015-08-111-1/+1
| | | | | | | In systems where time_t is defined as 32-bit integer, the multiplication by 1000 to get millisecond will cause an integer overflow. Fix this problem by explicit integer conversion.
* nq: check pipe(2) for errors.Christian Neukirchen2015-08-071-1/+4
|
* nq.c: add `static' qualifier to global functions.Lv Zheng2015-08-071-2/+2
|
* nq: launch job in own process group to simplify killing it all.Christian Neukirchen2015-08-071-0/+1
|
* nq: use snprintfChristian Neukirchen2015-08-061-3/+6
|
* fix missed sprintf of int64_tChristian Neukirchen2015-08-031-1/+1
|
* redirect stdout/stderr before waiting, else nq sleep 100; b=$(nq sleep 100) ↵Christian Neukirchen2015-08-031-2/+4
| | | | stalls
* flock(2) is not actually POSIX...Christian Neukirchen2015-08-031-2/+3
|
* deal properly with int64_t valuesChristian Neukirchen2015-08-031-5/+7
|
* export NQJOBID to running jobsChristian Neukirchen2015-08-021-0/+1
|
* add -t to test if queue needs waitingChristian Neukirchen2015-08-021-10/+18
|
* wait for arguments of -wChristian Neukirchen2015-08-021-23/+49
|
* -w doesn't take any argumentsChristian Neukirchen2015-08-021-3/+3
|
* add -wChristian Neukirchen2015-07-311-5/+28
|
* tweaksChristian Neukirchen2015-07-311-6/+10
|
* formattingChristian Neukirchen2015-07-311-3/+4
|
* introductory commentChristian Neukirchen2015-07-311-1/+15
|
* cleanups, usageChristian Neukirchen2015-07-311-5/+10
|
* close stdin/stdout, else it locks e.g. for "nq ... | cat"Christian Neukirchen2015-07-311-0/+2
|
* more cleanupChristian Neukirchen2015-07-311-37/+59
|
* clean up, use a pipe instead of signalsChristian Neukirchen2015-07-311-46/+44
|
* reformatChristian Neukirchen2015-07-311-119/+119
|
* Initial import of nqChristian Neukirchen2015-07-311-0/+175