Function "sigint_handler" is working successfully when shutdown variable is a pointer.