[Users] [Bug 4393] New: Fix the popen replacement logic and move it into a separate function

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Tue Oct 20 18:39:44 CEST 2020


https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=4393

            Bug ID: 4393
           Summary: Fix the popen replacement logic and move it into a
                    separate function
           Product: Claws Mail
           Version: GIT
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Other
          Assignee: users at lists.claws-mail.org
          Reporter: msuchanek at suse.de

Created attachment 2116
  -->
https://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=2116&action=edit
Fix the popen replacement logic and move it into a separate function

Do not use non-blocking reads. The r > 0 would reject output of program
that does not provide it immediately and continuously. fgets was not
non-blocking either.

Convert the fd to FILE* to use the previous fgets logic to handle CR/LF.

Free argv on pipe() failure.

Exit when execvp fails.

Note: only compile tested

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Users mailing list