[go-nuts] context cancellation in exec.CommandContext and os.Exit

2020-01-19 Thread Tamás Gulácsi
Yes. Never call os.Exit when you still has work to be done. Even defers are skipped. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@goog

[go-nuts] context cancellation in exec.CommandContext and os.Exit

2020-01-19 Thread Manlio Perillo
Hi. Suppose I have a program that spawns a process with exec.CommandContex and, in a signal handler, cancel the context and calls os.Exit(1). Is it possible, in theory, that the program exits before the process is actually terminated? Thanks Manlio Perillo -- You received this message becau