1.

Which among the following POSIX signals generate events?(a) SIGDOWN(b) SIGFLOAT(c) SIGINT(d) SIGSHORTI have been asked this question in final exam.This question is from Server-Side JavaScript topic in chapter Server-Side and Client-Side Scripting of JavaScript

Answer»

The correct option is (c) SIGINT

The explanation is: The SIGINT is a POSIX signal that GENERATES event. Simple code like below can do a proper clean up and exit on CTRL-C or SIGINT passed from command LINE / other application to the nodejs APP’s PROCESSID.



Discussion

No Comment Found

Related InterviewSolutions