Diesel truck dies, chevy, not mine

There is a fuel shut off solenoid, that could be acting up, if they lose power for just a second or hang up a little they shut the fuel off, but like was mentioned before could be in the ecm. I work on diesels and the gm's are notorious for fueling problems, most of the time it's the pump itself, but this doesn't sound like his problem.