mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Remove EVENT_* variables from environment after initializing libevent so they
are not carried into child processes; from Henry Qin.
This commit is contained in:
@ -92,7 +92,12 @@ osdep_get_cwd(int fd)
|
||||
struct event_base *
|
||||
osdep_event_init(void)
|
||||
{
|
||||
struct event_base *base;
|
||||
|
||||
/* On Linux, epoll doesn't work on /dev/null (yes, really). */
|
||||
setenv("EVENT_NOEPOLL", "1", 1);
|
||||
return (event_init());
|
||||
|
||||
base = event_init();
|
||||
unsetenv("EVENT_NOEPOLL");
|
||||
return (base);
|
||||
}
|
||||
|
Reference in New Issue
Block a user