diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-12-29 12:01:38 +0100 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-12-30 02:42:34 +0300 |
| commit | a7202a1fb911f72c309380b42c0ff995c05ba94c (patch) | |
| tree | b808fc297e4cf4dd719778f57dd54c5928986460 /configure.ac | |
| parent | d48439b1e81cc0d0835c63a8bac14562b4f4b5c7 (diff) | |
GTK: implemented --detach|-d option for detaching from controlling terminal
This is useful to launch from a terminal without "blocking" this terminal.
There are tools like nohup and daemonize (BSD) to do the same, but having it
builtin is shorter to write.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c0e9939..31fd8fb 100644 --- a/configure.ac +++ b/configure.ac @@ -213,7 +213,9 @@ AC_CHECK_FUNCS([memset setlocale strchr strrchr fstat sscanf], , [ # glib defines G_OS_UNIX instead... case $host in *-*-linux* | *-*-*bsd* | *-*-darwin* | *-*-cygwin* | *-*-haiku*) - AC_CHECK_FUNCS([realpath readlink pathconf fchown dup dup2 getpid open read kill mmap popen pclose isatty], , [ + # NOTE: Keep this on a single line for compatibility + # with ancient versions of Autoconf. + AC_CHECK_FUNCS([realpath readlink pathconf fchown dup dup2 getpid open read kill mmap popen pclose isatty fork setsid], , [ AC_MSG_ERROR([Missing libc function]) ]) AC_SEARCH_LIBS(dladdr, [dl], , [ |
