Modify lserv_funcs2.c so it responds to SIGHUP by printing the contents of the table (ticket_array) to standard output, and to SIGQUIT by printing the contents of the table and a message "Shutting down ...", closing the socket and exiting. Call the resulting file lserv_funcs3.c.
Note that the shut_down procedure closes the socket but is not currently called in lserv2.c. You will need to modify it to ensure that shut_down is called in lserv3.c when the SIGQUIT is received.
Remember you need to compile this modified version with lserv3.c and dgram.c as in
cc -o lserv3 lserv3.c lserv_funcs3.c dgram.c
You can test these features by using the kill command e.g. kill -HUP serverpid where serverpid is the process ID of the licence server.
Turn in the files all the files necessary to compile and run both lserv3 and lclnt3.
Due : Monday May 9, 2016