[#BloombergLP-balb-PipeControlChannel-setPermissions]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balb.adoc[balb]::xref:BloombergLP/balb/PipeControlChannel.adoc[PipeControlChannel]::setPermissions
:relfileprefix: ../../../
:mrdocs:

Set the permission bit mask for the underlying named pipe&period;

== Synopsis

Declared in `&lt;balb&lowbar;pipecontrolchannel&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setPermissions(int permissions);
----

== Description

Set the permission bit mask for the underlying named pipe to the specified `permissions` value&period; The behavior is undefined unless `bdls&colon;&colon;FilePermissions&colon;&colon;isValidBaseBits(permissions)`&period; This setting only takes effect on the next call to `start`&semi; calling this method has no effect on a pipe that has already been opened&period; See the class&hyphen;level documentation for a description of the cross&hyphen;platform semantics&period; The behavior is undefined if this method is called while the background thread is running (i&period;e&period;, after `start` and before `shutdown`), or if the `permissions` value is not valid&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *permissions*
| permission bit mask for the named pipe
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
