Cygwin: timerfd: implement execve semantics

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2019-01-16 18:40:26 +01:00
parent 4195bae67f
commit 0e8c7b8689
3 changed files with 28 additions and 15 deletions

View File

@ -161,10 +161,15 @@ fhandler_timerfd::dup (fhandler_base *child, int flags)
void
fhandler_timerfd::fixup_after_exec ()
{
if (!close_on_exec ())
if (close_on_exec ())
return;
__try
{
/* TODO after exec */
timer_tracker *tt = (timer_tracker *) timerid;
tt->fixup_after_exec ();
}
__except (EFAULT) {}
__endtry
}
int