potiuk commented on a change in pull request #7724: [AIRFLOW-1536] Inherit 
umask from parent process in daemon mode
URL: https://github.com/apache/airflow/pull/7724#discussion_r392602040
 
 

 ##########
 File path: airflow/utils/cli.py
 ##########
 @@ -238,3 +238,12 @@ def sigquit_handler(sig, frame):  # pylint: 
disable=unused-argument
             if line:
                 code.append("  {}".format(line.strip()))
     print("\n".join(code))
+
+
+def get_umask():
+    """
+    Returns umask to control default file permission for new files
+    """
+    cur_mask = os.umask(0)
+    os.umask(cur_mask)
 
 Review comment:
   Why do you set it here ? I think this is not necessary.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to