Searched couple hours here, could not find suitable working variant.
Example:
#!/bin/sh sleep infinity | ./some_script_that_could_be_killed_inexpected