my_system_r() validations and refactoring

- validating `pipe()' call return value
- removing not needed `else' statement
- removed unused code to treat plugins being signaled
- avoiding a few comparsions when reading from and writing to pipe