]> granicus.if.org Git - strace/commit
mq: print msg payload only in case of successful mq_timedreceive call
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 27 Oct 2016 07:12:32 +0000 (10:12 +0300)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 28 Oct 2016 23:54:02 +0000 (02:54 +0300)
commit26690859f6055bc5cdf96847972040401852acc8
tree9ef65501b93c37676fb7dcafb83d83275375f896
parent19bd947891d0ec35dd280fbd91f988e2365cf70a
mq: print msg payload only in case of successful mq_timedreceive call

Also, use u_rval for determining message size.

* mq.c (SYS_FUNC(mq_timedreceive)): Check for syserror and non-negative
u_rval before calling printstr on msg_ptr argument, or use printaddr otherwise;
provide u_rval as string size.
mq.c