Turning a pulse into an extended on signal
For a software solution: use interrupts http://wiringpi.com/reference/priority-interrupts-and-threads/

As a bonus: Extending a short pulse can be accomplished using a monostable circuit like this: 
http://www.talkingelectronics.com/projects/555/imagesP1/555-one-shotPosTrig.gif