Maxim Zakharov
Maxim Zakharov
But STDIN is read only while STDOUT and STDERR are write only.
Nope. If the new fd is already open, dup2() would close it before reusing. If the old fd is equal to the new fd dup2() does nothing. So there is...
It looks very good, but perhaps we need to add a comment that this code is rely on unix's property to always use lowest unused file descriptor. As I remember,...
But if the caller to do not expect it default action for SIGHUP is to terminate the process. glibc's implementation of daemon() doesn't not block SIGHUP, while freebsd's does: https://svnweb.freebsd.org/base/stable/9/lib/libc/gen/daemon.c?view=markup...
Moving setsid() set the possibility of SIGHUP to a minimum, but not prevents it completely.
It is indeed a heapsort sorting, though not a classical implementation, and it can be dubbed just "heapsort" if you do not plan to include classical heapsort implementation into ccan.
Hi Rusty, It is well known quicksort behaves well better heapsort on random data on average, however quicksort's worse case is much worse in comparison to heapsort. There is a...
Current glib's qsort() implementation uses "Towers of Hanoi" Mergesort if it can allocate required additional memory without using swap space, otherwise it falls back to quicksort (see https://sourceware.org/ml/libc-alpha/2002-01/msg00218.html ) From...
Thank you for reporting it. Though in this case it is not an error.
indexer is installed into /usr/local/dpsearch/sbin/ directory by default. If you do not specify any SQL server when you run configure then indexer is not built. Please check you have specified...