I was wondering, is there a way by which I could pass arguments to signal handler? Actually, I want to update few files to maintain the information if user presses ctrl C. Now the information which I want to put in these files is in a map, list etc. So how can I send these as arguments to my signal handler?