implemented a linked list to handle jobs
having problem with flex and signal handler