links

lynx-like text mode web browser
git clone anongit@rnpnr.xyz:links.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 0ab0ea82c06f3757c738f29db94c9d104f441f32
Parent: 0348a4bc8d1fba7d10f0cb08ca4e98e9244721d8
Author: opask
Date:   Thu,  9 Aug 2018 05:39:33 -0600

remove missed HAVE_PTHREADS ifdef

Diffstat:
Mos_dep.c | 2--
Mos_depx.h | 4----
Mterminal.c | 2--
3 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/os_dep.c b/os_dep.c @@ -333,7 +333,6 @@ unsigned char *os_fixup_external_program(unsigned char *prog) /* UNIX */ int exe(unsigned char *path, int fg) { -#ifndef EXEC_IN_THREADS #ifdef SIGCHLD do_signal(SIGCHLD, SIG_DFL); #endif @@ -350,7 +349,6 @@ int exe(unsigned char *path, int fg) #ifdef SIGWINCH do_signal(SIGWINCH, SIG_DFL); #endif -#endif #ifdef G if (F && drv->exec) return drv->exec(path, fg); #endif diff --git a/os_depx.h b/os_depx.h @@ -138,7 +138,3 @@ #define static_const static const typedef const char *const_char_ptr; - -#if defined(HAVE_PTHREADS) -#define EXEC_IN_THREADS -#endif diff --git a/terminal.c b/terminal.c @@ -1293,10 +1293,8 @@ void exec_thread(void *path_, int p) { unsigned char *path = (unsigned char *)path_; int rs; -#if !defined(EXEC_IN_THREADS) if (path[0] == 2) EINTRLOOP(rs, setpgid(0, 0)); -#endif exe(path + 1, path[0]); if (path[1 + strlen(cast_const_char(path + 1)) + 1]) EINTRLOOP(rs, unlink(cast_const_char(path + 1 + strlen(cast_const_char(path + 1)) + 1)));