SDP-770

tom_tyler (C. Thomas Tyler)
C. Thomas Tyler created this job , modified by C. Thomas Tyler
Closed
Server start is more robust if /var/log is full.

A call to 'mktemp -d' worked on some platforms but
not Ubuntu.  The call was only exercised when
/var/log is 100.  Use a more portable call.

If /var/log is 100% full, the call to 'mktemp -d'
would result in an error:

mktemp: too few X's in template ‘tmp_p4d_base’
28675Enhanced call to 'mktemp -d' to be more portable.
 The call
was only made when /var/log is 100% full did  a call to
'mktemp -d' that works on some platforms but not Ubuntu.

Without this change, if /var/log was 100% full, on some
platforms the error would show as:

mktemp: too few X's in template ‘tmp_p4d_base’

This logic was only exercised if /var/log was 100% full.
28674Enhanced call to 'mktemp -d' to be more portable.
 The call
       was only made when /var/log is 100% full did  a call to
       'mktemp -d' that works on some platforms but not Ubuntu.

       Without this change, if /var/log was 100% full, on some
       platforms the error would show as:

       mktemp: too few X's in template ‘tmp_p4d_base’

       This logic was only exercised if /var/log was 100% full.

#review-28675
  • Details
  • Comments -
Status
Closed
Project
perforce-software-sdp
Severity
C
Reported By
C. Thomas Tyler
Reported Date
Modified By
C. Thomas Tyler
Modified Date
Owned By
tom_tyler
Component
core-unix
Type
Bug